<template>
    <h3>组件案例</h3>
    <el-button @click="add">add</el-button>
    {{cnt}}
 </template>
 

 <script setup>
import { ref, onMounted } from 'vue'


const cnt = ref(0)

const add = ()=>{
    cnt.value ++
}

</script>
 
 <style>
 
 </style>